package com.qingjiang.projectschedule.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.qingjiang.projectschedule.pojo.Department;
import com.qingjiang.projectschedule.utils.Result;

import java.util.List;

/**
 * @author jx
 * @description 针对表【department】的数据库操作Service
 * @createDate 2024-03-20 10:10:59
 */
public interface DepartmentService extends IService<Department> {

    Department getDeptById(Integer deptId);

    String getDeptNameById(Integer deptId);

    List<Department> getDeptList();

    Integer getDeptIdByName(String name);

    Result updateDept(Department department);

    Result insertDept(Department department);

    Result getDepartmentsByType(String type);

    List<Department> getDeptByID(List<Integer> deptIDs);

    Result getAllDeptList();
}
